package com.zhijian.medical.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 档案文件
 *
 * @author Auto Generator
 * @date 2022-01-01 15:38:53
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "档案文件")
public class DeviceArchivesFile {
    /**
     * id
     */
    @ApiModelProperty(value = "id", hidden = true)
    private Long id;

    /**
     * 文件名称
     */
    @ApiModelProperty("文件名称")
    @NotBlank(message = "文件名称不能为空")
    private String name;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String note;

    /**
     * 文件地址
     */
    @ApiModelProperty("文件地址")
    @NotBlank(message = "文件地址不能为空")
    private String filePath;

    /**
     * 设备id
     */
    @ApiModelProperty("设备id")
    @NotNull(message = "设备id不能为空")
    private Long deviceId;

    /**
     * create_time
     */
    @ApiModelProperty(value = "create_time", hidden = true)
    private Date createTime;

    /**
     * update_time
     */
    @ApiModelProperty(value = "update_time", hidden = true)
    private Date updateTime;
}